 <{if $setting.showtag=="1"}><div class="qf-goods-box <{$setting.stylename}>"><{/if}>
    <{if $setting.ad_pic1 || $setting.title}><div class="hd"><h3><{if $setting.ad_pic1}><img src='<{$setting.ad_pic1}>' /><{else}><{if $setting.title}><{$setting.title}><{/if}><{/if}></h3></div><{/if}>
<div class="bd">
    <{if $setting.stylename=="floor-plan2"}>
    <div class="goods-banner">
    <a href="<{$setting.banlink}>">
    <div class="banner-pic"><img src="<{$setting.ad_pic2}>" alt="<{$setting.goodsname}>"></div>
    <{if $setting.goodsname||$setting.goodsdesc}><div class="goods-info">
    <{if $setting.goodsname}><div class="goods-name"><{$setting.goodsname}></div><{/if}>
    <{if $setting.goodsdesc}> <div class="goods-desc"><{$setting.goodsdesc}></div><{/if}>
           <{if $data.check_login=="login"}> <{if $setting.goodsprice}> <div class="goods-price"><{$setting.goodsprice}>
    </div> <{/if}><{/if}>
    </div><{/if}>
    </a>
    </div>
    <{/if}>
    <div class="goods-list c-fix">
        <{assign var="do" value="1"}>
        <{foreach from=$data.goodsRows item=row key=gid name=goodsrow}>
        <div class="pt-item fore<{$do}>" style="position: relative" data-id="<{$row.goods_id}>">
            <{assign var=pickey value=$setting.gpic_size|default:'goodsPicM' }>
                <div class="pt-img">
                    <!--<p class="u-cart-num"></p>-->
                    <a href="<{$row.goodsLink}>"><p></p><img src="<{$row[$pickey]}>" alt="<{$row.goodsName}>" /></a>
                </div>

                <div class="goods-info">
                    <div class="pt-name"><a href="<{$row.goodsLink}>"><{$row.goodsName}></a></div>
                    <{if $setting.showdesc=="1"}><div class="goods-desc"><{$row.goodsIntro|cut:$setting.maxlength1}></div><{/if}>
               
                <!--  add 这里判断登录--和未登录-价格不显示 -->
                    <{if $data.check_login=="login"}>
                  <!--  end 这里判断登录--和未登录-价格不显示 -->  
                    <div class="price" style="display: inline-block;">
                    	<a href="<{$row.goodsLink}>" style="color:#ff6000;">
		                    <!--@zeng 2017.4.25 移动端首页商品列表价格显示控制-->
		                      <{if $row.products.1.info.member_state == '1'}>
                                <{if $row.mlv_price1}>
                                  <{$row.mlv_price1|cur}>
                                <{else}><{if $row.mlv_price2}>
                                   <{$row.mlv_price2|cur}>
                                <{else}>
		                               <{$row.products.2.mlv_price|cur}>
                                <{/if}>
                                <{/if}>
		                      <{else}>
                                 <{if $row.price1}>
                                    <{$row.price1|cur}>
                                 <{else}><{if $row.price2}>
                                    <{$row.price2|cur}>
                                 <{else}>
		                                <{$row.goodsSalePrice|cur}>
		                             <{/if}>
                                 <{/if}>
                          <{/if}>
		                    <!--end-->
                    	</a>
                    </div>
                     <div>                          
                           
                           <{if !$row.tags}>
                         <label class="u-label">正常</label>
                           <{else}>
                           <{foreach from=$row.tags item=tagName}>
                         <label class="u-label"><{$tagName.tag_name}></label>
                           <{/foreach}>
                           <{/if}>
                         <span style="margin-left: .1rem">规格：<{$row.goodStandard}></span>

                    </div>
                    		    <!--  add 这里判断登录--和未登录-价格不显示 -->  
				     <{/if}>  	
				    <!--  end 这里判断登录--和未登录-价格不显示 -->  
                    <div style="display: inline-block;position: absolute;right: .1rem;bottom: .15rem">
                    
                    <!-- 弹框函数数据传递  ysh  hzk-->
				          <a onclick="tan('<{$row.goodsId}>','<{$row.products.0.product_id}>','<{$row.products.0.store}>','<{$row[$pickey]}>',<{if $row.products.1.info.member_state == '1'}>'<{$row.products.2.mlv_price|cur}>'<{else}>'<{$row.goodsSalePrice|cur}>'<{/if}>,<{if $data.add.isused==1}> <{$data.add.pernum}> <{else}> <{$row.peradd}> <{/if}>,'<{$row.peradd}>','<{$row.products.3.type}>','<{$row.products.4.maxbuy|number}>','<{$row.nostoreSell}>','<{$row.goodsName}>','<{$row.goodStandard}>');">
				          <!--  <input type="hidden" id="maxbuy" class="maxbuy" value="<{if $row.products.3.type =="havegift"}><{$row.products.4.maxbuy|number}><{else}><{$row.products.0.store}><{/if}>">     -->	
				          <!-- <{if $row.products.3.type =="havegift"}><{$row.products.4.maxbuy|number}><{else}><{99999}><{/if}> -->
				          	<img src="images/car.png" style="width: .4rem;height: .4rem;" />
				          </a>
				    </div>
		
                </div>
        </div>
        <{assign var="do" value=$do+1}>
        <{/foreach}>
    </div>
    <{if $setting.stylename=="floor-plan3"}>
    <div class="goods-banner">
    <a href="<{$setting.banlink}>">
    <div class="banner-pic"><img src="<{$setting.ad_pic2}>" alt="<{$setting.goodsname}>"></div>
    <{if $setting.goodsname||$setting.goodsdesc}>
    <div class="goods-info">
    <{if $setting.goodsname}><div class="goods-name"><{$setting.goodsname}></div><{/if}>
    <{if $setting.goodsdesc}> <div class="goods-desc"><{$setting.goodsdesc}></div><{/if}>
    <{if $setting.goodsprice}> <div class="goods-price"><{$setting.goodsprice}></div> <{/if}>  	
    </div>
    <{/if}>
    </a>
    </div>
    <{/if}>
</div>
<{if $setting.morelink}><div class="more"><a href="<{$setting.morelink}>"><{$setting.moretext}></a></div><{/if}>
<{if $setting.showtag=="1"}></div><{/if}>

<div class="bg_inner" style="display:none;height: 100%;position: fixed;top: 0;left: 0;right: 0;z-index: 998;background: #000;opacity: .2; "></div>
<form action="<{link app=b2c ctl=wap_cart act=add arg0=goods}>" method="post" class="buy-form" data-type="ajax" style="display: none;position: fixed;bottom: 0;left: 0;z-index: 1000;width: 100%;background-color:#fff;">
	<div>
		<input type="hidden" name="goods[goods_id]" id="goods_id" value="" />
		<input type="hidden" name="goods[product_id]" id="product_id"  value="">
		<input type="hidden" name="min" value="1" id='min' class="min-num" />
		<input type="hidden" name="max" id = 'max' value="<{$row.products.0.store}>" class="max-num" />
		<input type="hidden" name="mini_cart" id = 'mini_cart' value="true" />
	</div>
	<div class="js-cancel" style="height: .5rem;width: .5rem;background:#f4a321;position: absolute;top:0;right: 0;font-size: .6rem;color: #fff;text-align: center;">×</div>
	<div style="height: 2rem">
		<div style="float: left;">
			<img class="min_img" src="<{$row[$pickey]}>" style="width:2rem;" />
		</div>
                <!--  add 这里判断登录--和未登录-价格不显示 -->
                    <{if $data.check_login=="login"}>
                  <!--  end 这里判断登录--和未登录-价格不显示 -->  		
		<div>
            <p class="form_name"><{$row.goodsName}></p>
			<p class="min_price" style="line-height: .5rem;color:#ff6000;font-size: .32rem;margin-left: .5rem;"><{$row.goodsSalePrice|cur}></p>
            <p style="line-height: .5rem">规格：<span  class="form_standard"><{$row.goodStandard}></span></p>
		</div>

                    		    <!--  add 这里判断登录--和未登录-价格不显示 -->  
				     <{/if}>  	
				    <!--  end 这里判断登录--和未登录-价格不显示 -->  		
	</div>
	
	<div class="pt-num J-pt-num" style="height: .5rem;margin-top: .5rem;margin-bottom: 1rem;padding-left: .5rem;">
		<span style="width: .6rem;height: .6rem;line-height: .6rem;font-size: .3rem;margin-right: .32rem;">数量</span>
		<span class="minus btn gray" style="width: .6rem;height: .6rem;line-height: .6rem;font-size: .32rem;">-</span>
		<div class="num">
		<!-- <{if $data.add.isused==1}> <{$data.add.pernum}> <{else}> <{$row.peradd}> <{/if}> -->
			<input type="text" name="goods[num]" id="goods_num" value="<{$row.peradd}>" class="num-ipt" style="width: .8rem;height: .6rem;line-height: .6rem;font-size: .32rem;">
			<input type="hidden"   class="peradd"  value="<{$row.peradd}>" />
			<input type="hidden"   class="nostoreSell"  value="<{$row.nostoreSell}>" />
              <input type="hidden" id="maxbuy" class="maxbuy" >
              <input type="hidden" id="max" class="max" >
              
               <input type="hidden"  class="havegift">
		  <!-- <input type="text"  class="action-quantity-input-getmaxbuy"  > -->
		  
		</div>
		<span class="plus btn gray" style="width: .6rem;height: .6rem;line-height: .6rem;font-size: .32rem;">+</span>
	</div>
	<div>
		<a class="btn orange tobuy" style="height: .8rem;line-height: .8rem;font-size: .32rem;">加入购物车</a>
	</div>
    <br>
    <br>
    <br>
</form>



